package com.zxy.service;

import com.zxy.dao.WareHouseDao;
import com.zxy.model.WareHouse;
import com.zxy.model.WareHouseQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WareHouseService {
    @Autowired
    private WareHouseDao wareHouseDao;

    public List<WareHouse> select(WareHouseQuery query) {
        return  wareHouseDao.select(query);
    }

    public int insert(WareHouse model) {
        //省略判断
        return  wareHouseDao.insert(model);
    }

    public int update(WareHouse model) {
        return  wareHouseDao.update(model);
    }

    public int delete(Integer id) {
        return  wareHouseDao.delete(id);
    }
}
